package com.woniuxy.dao;

import com.woniuxy.pojo.CustLost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustLostMapper {
    //查询所有流失客户
    public List<CustLost> selectAllCustLost();
    //根据条件查找流失客户
    public List<CustLost> selectBycondition(CustLost custLost);
    //对暂缓流失客户的状态和暂缓措施进行更改
    public void updateBycondition(CustLost custLost);
    //更改之前得将原来的暂缓措施查询出来进行拼接
    public String selectDelay(CustLost custLost);
    //对确认流失客户的状态和流失原因进行更改
    public void updateConfirmStatus(CustLost custLost);
    //更改之前得到原来的流失原因
    public String selectReson(CustLost custLost);
    //新增流失表
    public void insertLost(@Param("id") int id, @Param("custNo")String custNo,@Param("lostStatus") int lostStatus);
    public  void deleteLost(CustLost custLost);
}
